package com.gz.lot.user.mapper;


import com.gz.lot.user.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {
    @Select("SELECT * FROM tb_user WHERE username=#{username}")
    User selectUserByName(String username);

    /*@Insert("INSERT INTO tb_user(username, password) VALUES (#{username},#{password})")
    int registerUser(@Param("username") String username, @Param("password") String password);*/
}
